package com.bc.bcsellerapihttp.controller;

import com.bc.bcapi.service.T_CountryService;
import com.bc.bcapi.service.T_Mnguser_infoService;
import com.bc.bcmodel.NationalityInfo;
import com.bc.bcmodel.consts.GlobalSettings;
import com.bc.commonentity.common.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by lianzerong on 2018/8/23.
 */
@RestController
@RequestMapping(value = "/nologon/marvel/")
@Api(value = "住址信息相关")
public class AddressController {
    private static final Logger LOGGER = LoggerFactory.getLogger(AddressController.class);
    @Autowired
    T_CountryService t_countryService;

    @ApiOperation(value = "国家")
    @RequestMapping(value = "nationalitys", method = RequestMethod.GET)
    public JsonResult nationalitys(HttpServletRequest request, HttpServletResponse response) {
        return t_countryService.getAllCountry(request, response, GlobalSettings.LANGUAGE);
    }

}
